import Vue from 'vue';
import Router from 'vue-router';
import HelloWorld from './components/HelloWorld.vue';
import test from './components/test.vue';
import merchant_login from './components/merchant/merchant_login.vue';
import merchant_index from './components/merchant/merchant_index.vue';
import merchant_register from './components/merchant/merchant_register.vue';
import merchant_commodity from './components/merchant/merchant_commodity.vue';
import merchant_order from './components/merchant/merchant_order.vue';
import merchant_tool from './components/merchant/merchant_tool.vue';
import merchant_my from './components/merchant/merchant_my.vue';
import classification_commodity from './components/merchant/classification_commodity.vue';
import classification from './components/merchant/classification.vue';



// 使用Vue Router
Vue.use(Router);

// 定义路由
const routes = [{
	path: '/',
	component: merchant_login
}, {
	path: '/merchant_index',
	component: merchant_index
},{
	path: '/merchant_register',
	component: merchant_register
}, {
	path: '/merchant_commodity',
	component: merchant_commodity
}, {
	path: '/merchant_order',
	component: merchant_order
}, {
	path: '/merchant_tool',
	component: merchant_tool
},  {
	path: '/merchant_my',
	component: merchant_my
},
 {
	path: '/classification_commodity',
	component: classification_commodity
},
{
	path: '/classification',
	component: classification
},
 ];

// 创建router实例
const router = new Router({
	mode: 'history',
	routes // (缩写) 相当于 routes: routes
});

export default router;